home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / What's New? / Technical Documentaion / Macintosh Technotes and Q&As / technotes / tn / tn1137.hqx / InterruptDisableLib1.0b2 / InterruptDisableLib.h < prev    next >
Encoding:
Text File  |  1998-03-28  |  1.2 KB  |  42 lines

  1. /*
  2.     File:        InterruptDisableLib.h
  3.  
  4.     Contains:    Routines for disabling interrupts on 68K and PPC.
  5.  
  6.     Written by:    Quinn "The Eskimo!"
  7.  
  8.     Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.     You may incorporate this sample code into your applications without
  13.     restriction, though the sample code has been provided "AS IS" and the
  14.     responsibility for its operation is 100% yours.  However, what you are
  15.     not permitted to do is to redistribute the source as "DSC Sample Code"
  16.     after having made changes. If you're going to re-distribute the source,
  17.     we require that you make it clear in the source that the code was
  18.     descended from Apple Sample Code, but that you've made changes.
  19. */
  20.  
  21. /////////////////////////////////////////////////////////////////////
  22.  
  23. #include <Types.h>
  24.  
  25. /////////////////////////////////////////////////////////////////////
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30.  
  31. extern pascal UInt16 GetInterruptMask(void);
  32.     // Returns the current interrupt mask, as a value
  33.     // from 0 to 7.
  34.     
  35. extern pascal UInt16 SetInterruptMask(UInt16 newMask);
  36.     // Sets the current interrupt mask, as a value
  37.     // from 0 to 7.
  38.  
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42.